package com.ccrfid.rmc6.repository.vehicle;

import com.ccrfid.rmc6.entity.vehicle.VehiclePhotoEntity;
import org.springframework.data.repository.Repository;

public interface VehiclePhotoRepository extends Repository<VehiclePhotoEntity, Long> {

    Boolean existsByVehicleId(Long vehicleId);

    VehiclePhotoEntity getByVehicleId(Long vehicleId);

    VehiclePhotoEntity save(VehiclePhotoEntity entity);

    void deleteByVehicleId(Long vehicleId);
}
